<div class="control">
  <input [(ngModel)]="value" (keyup.enter)="add()">
  <div class="btns">
    <button class="btn btn-primary" (click)="add()">add</button>
    <button class="btn btn-danger" (click)="reset()">reset</button>
  </div>
</div>

<ul class="list">
  <li *ngFor="let item of heros; trackBy: trackByHero">{{ item.name }}</li>
</ul>